package com.example.mydownloader.ui.main

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.mydownloader.config.thread.MyThreadPool
import com.example.mydownloader.data.main.MainRepository
import com.example.mydownloader.data.model.inputdata.NettyConfig
import kotlinx.coroutines.launch

/**
 * @Author: Wallace
 * @Description: 文件描述
 * @Date: 2022/1/31 18:17
 * @Modified: By yyyy-MM-dd
 */
class MainViewModel(private val mainRepository: MainRepository) : ViewModel() {

//    fun getNettyConfig(): NettyConfig? {
//        return mainRepository.nettyConfig
//    }
//
//    fun getNettyConfig(token: String, nettyUrls: ArrayList<String>) {
//        this.viewModelScope.launch(MyThreadPool.coroutineDispatcher) {
//            mainRepository.getNettyConfig(token, nettyUrls)
//        }
//    }

}